find the union and intersection of two sorted arrays

join shbcf.ru